using UnityEngine;
using System.Collections;

public class Store : MonoBehaviour 
{
	public static int souls;
	public weaponType weapon;
	public TextMesh valueSouls;
	public GameObject confirmationFirst;
	public GameObject confirmationSecond;
	public GameObject confirmationThird;
	
	void Start()
	{
		souls = PlayerPrefs.GetInt("Souls");	
		valueSouls.text = souls.ToString();
	}
	
	void OnMouseDown()
	{
		if(weapon.Equals(weaponType.FIRST))
		{
			confirmationFirst.SetActive(true);
		}
		if(weapon.Equals(weaponType.SECOND))
		{
			confirmationSecond.SetActive(true);
		}
		if(weapon.Equals(weaponType.THIRD))
		{
			confirmationThird.SetActive(true);
		}
	}
	
	public enum weaponType
	{
		FIRST,
		SECOND,
		THIRD
	}
}
